from datetime import datetime


def string_to_datetime(string):
    """Convert a string dd.mm.yyyy to datetime object"""
    return datetime.strptime(string, '%d.%m.%Y')
